<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			
			p {
				width: 100px;
				height: 100px;
				border: 1px solid red;
			}
			
		</style>
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("input").click(function(){
					$("a").attr("href" , "http://www.163.com");
						//第一个参数是要被 修改的属性名,第二个参数是新的属性值
					$("a").html("去网易");
				});
			});
		</script>
	</head>
	<body>
		<input type="button" id="btn1" value="点我" />
		<a href="http://www.baidu.com">百度</a>
	</body>
</html>
